const { getMessage, update } = require("../service/message.service.js");
class Message {
  async getData(ctx) {
    ctx.body = await getMessage();
  }
  async update(ctx) {

    
    try {
      await update(ctx.request.body);
      ctx.body = "修改成功";
    } catch (err) {}
  }
}
module.exports = new Message();
